switch (Cont.)
Pascal
C/C++
If the breaks are omitted, control flows through case to
case. Thus, the following are equivalent:
switch (i)
{
case 0: printf(“Zero”);
case 1: printf(“One”);
}
case i of
0: write(‘ZeroOne’);
1: write(‘One’)
end;